package com.bdqn.t382.mapper.storageRecord;

import com.bdqn.t382.entity.StorageRecord;
import com.bdqn.t382.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface StorageRecordMapper {
    List<StorageRecord> selectByConditions(@Param("goodsName") String goodsName,
                                           @Param("supplierId") Integer supplierId,
                                           @Param("payStatus") Integer payStatus);

    /**
     * 查询入库记录表，包括供货商名称
     *
     * @Param SysUser
     */
    public List<Supplier> getStorageRecordListWithSupName(@Param("supName") String supName,
                                                          @Param("supCode") String supCode,
                                                          @Param("id") Integer id);

    public List<StorageRecord> getStorageRecordListBySupplierId(@Param("supplierId") Integer supplierId);

    public List<Supplier> getBySupplierId(@Param("id") Integer id);

    public List<Supplier> getSupplierSupName(@Param("supName") String supName,
                                             @Param("supCode") String supCode,
                                             @Param("supContact") String supContact,
                                             @Param("supName") Date createdTime);

    public List<StorageRecord> getList(Map<String, Object> storageRecordMap);

    public List<StorageRecord> selectPageList(@Param("goodsName") String goodsName,
                                              @Param("supplierId") Integer supplierId,
                                              @Param("pageBegin") Integer PageBegin,
                                              @Param("pageSize") Integer pageBegin);
}
